Optimal. Leaf size=103 \[ \frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{2 a \sqrt {b^2-4 a c} e f}+\frac {\log (d+e x)}{a e f}-\frac {\log \left (a+b (d+e x)^2+c (d+e x)^4\right )}{4 a e f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.242, Rules used = {1156, 1128,
719, 29, 648, 632, 212, 642} \begin {gather*} \frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{2 a e f \sqrt {b^2-4 a c}}-\frac {\log \left (a+b (d+e x)^2+c (d+e x)^4\right )}{4 a e f}+\frac {\log (d+e x)}{a e f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 212
Rule 632
Rule 642
Rule 648
Rule 719
Rule 1128
Rule 1156
Rubi steps
\begin {align*} \int \frac {1}{(d f+e f x) \left (a+b (d+e x)^2+c (d+e x)^4\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x \left (a+b x^2+c x^4\right )} \, dx,x,d+e x\right )}{e f}\\ &=\frac {\text {Subst}\left (\int \frac {1}{x \left (a+b x+c x^2\right )} \, dx,x,(d+e x)^2\right )}{2 e f}\\ &=\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,(d+e x)^2\right )}{2 a e f}+\frac {\text {Subst}\left (\int \frac {-b-c x}{a+b x+c x^2} \, dx,x,(d+e x)^2\right )}{2 a e f}\\ &=\frac {\log (d+e x)}{a e f}-\frac {\text {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,(d+e x)^2\right )}{4 a e f}-\frac {b \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,(d+e x)^2\right )}{4 a e f}\\ &=\frac {\log (d+e x)}{a e f}-\frac {\log \left (a+b (d+e x)^2+c (d+e x)^4\right )}{4 a e f}+\frac {b \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c (d+e x)^2\right )}{2 a e f}\\ &=\frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{2 a \sqrt {b^2-4 a c} e f}+\frac {\log (d+e x)}{a e f}-\frac {\log \left (a+b (d+e x)^2+c (d+e x)^4\right )}{4 a e f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 131, normalized size = 1.27 \begin {gather*} \frac {4 \sqrt {b^2-4 a c} \log (d+e x)-\left (b+\sqrt {b^2-4 a c}\right ) \log \left (b-\sqrt {b^2-4 a c}+2 c (d+e x)^2\right )+\left (b-\sqrt {b^2-4 a c}\right ) \log \left (b+\sqrt {b^2-4 a c}+2 c (d+e x)^2\right )}{4 a \sqrt {b^2-4 a c} e f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.23, size = 188, normalized size = 1.83
method | result | size |
risch | \(\frac {\ln \left (e x +d \right )}{a e f}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\left (4 a^{2} f^{2} e^{2} c -a \,b^{2} f^{2} e^{2}\right ) \textit {\_Z}^{2}+\left (4 a c e f -b^{2} e f \right ) \textit {\_Z} +c \right )}{\sum }\textit {\_R} \ln \left (\left (\left (10 a c \,e^{3} f -3 b^{2} e^{3} f \right ) \textit {\_R} +5 c \,e^{2}\right ) x^{2}+\left (\left (20 a c d \,e^{2} f -6 b^{2} d \,e^{2} f \right ) \textit {\_R} +10 c d e \right ) x +\left (10 a c \,d^{2} e f -3 b^{2} d^{2} e f -a b e f \right ) \textit {\_R} +5 c \,d^{2}+2 b \right )\right )}{2}\) | \(173\) |
default | \(\frac {\frac {\ln \left (e x +d \right )}{a e}+\frac {\munderset {\textit {\_R} =\RootOf \left (e^{4} c \,\textit {\_Z}^{4}+4 d \,e^{3} c \,\textit {\_Z}^{3}+\left (6 d^{2} e^{2} c +e^{2} b \right ) \textit {\_Z}^{2}+\left (4 d^{3} e c +2 d e b \right ) \textit {\_Z} +d^{4} c +d^{2} b +a \right )}{\sum }\frac {\left (-e^{3} c \,\textit {\_R}^{3}-3 d \,e^{2} c \,\textit {\_R}^{2}+e \left (-3 c \,d^{2}-b \right ) \textit {\_R} -c \,d^{3}-b d \right ) \ln \left (x -\textit {\_R} \right )}{2 e^{3} c \,\textit {\_R}^{3}+6 d \,e^{2} c \,\textit {\_R}^{2}+6 c \,d^{2} e \textit {\_R} +2 c \,d^{3}+e b \textit {\_R} +b d}}{2 a e}}{f}\) | \(188\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 466, normalized size = 4.52 \begin {gather*} \left [\frac {{\left (\sqrt {b^{2} - 4 \, a c} b \log \left (\frac {2 \, c^{2} x^{4} e^{4} + 8 \, c^{2} d x^{3} e^{3} + 2 \, c^{2} d^{4} + 2 \, b c d^{2} + 2 \, {\left (6 \, c^{2} d^{2} + b c\right )} x^{2} e^{2} + 4 \, {\left (2 \, c^{2} d^{3} + b c d\right )} x e + b^{2} - 2 \, a c + {\left (2 \, c x^{2} e^{2} + 4 \, c d x e + 2 \, c d^{2} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c x^{4} e^{4} + 4 \, c d x^{3} e^{3} + c d^{4} + {\left (6 \, c d^{2} + b\right )} x^{2} e^{2} + b d^{2} + 2 \, {\left (2 \, c d^{3} + b d\right )} x e + a}\right ) - {\left (b^{2} - 4 \, a c\right )} \log \left (c x^{4} e^{4} + 4 \, c d x^{3} e^{3} + c d^{4} + {\left (6 \, c d^{2} + b\right )} x^{2} e^{2} + b d^{2} + 2 \, {\left (2 \, c d^{3} + b d\right )} x e + a\right ) + 4 \, {\left (b^{2} - 4 \, a c\right )} \log \left (x e + d\right )\right )} e^{\left (-1\right )}}{4 \, {\left (a b^{2} - 4 \, a^{2} c\right )} f}, \frac {{\left (2 \, \sqrt {-b^{2} + 4 \, a c} b \arctan \left (-\frac {{\left (2 \, c x^{2} e^{2} + 4 \, c d x e + 2 \, c d^{2} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right ) - {\left (b^{2} - 4 \, a c\right )} \log \left (c x^{4} e^{4} + 4 \, c d x^{3} e^{3} + c d^{4} + {\left (6 \, c d^{2} + b\right )} x^{2} e^{2} + b d^{2} + 2 \, {\left (2 \, c d^{3} + b d\right )} x e + a\right ) + 4 \, {\left (b^{2} - 4 \, a c\right )} \log \left (x e + d\right )\right )} e^{\left (-1\right )}}{4 \, {\left (a b^{2} - 4 \, a^{2} c\right )} f}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 348 vs.
\(2 (83) = 166\).
time = 17.43, size = 348, normalized size = 3.38 \begin {gather*} \left (- \frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) \log {\left (\frac {2 d x}{e} + x^{2} + \frac {- 8 a^{2} c e f \left (- \frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) + 2 a b^{2} e f \left (- \frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) - 2 a c + b^{2} + b c d^{2}}{b c e^{2}} \right )} + \left (\frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) \log {\left (\frac {2 d x}{e} + x^{2} + \frac {- 8 a^{2} c e f \left (\frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) + 2 a b^{2} e f \left (\frac {b \sqrt {- 4 a c + b^{2}}}{4 a e f \left (4 a c - b^{2}\right )} - \frac {1}{4 a e f}\right ) - 2 a c + b^{2} + b c d^{2}}{b c e^{2}} \right )} + \frac {\log {\left (\frac {d}{e} + x \right )}}{a e f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 285 vs.
\(2 (96) = 192\).
time = 3.04, size = 285, normalized size = 2.77 \begin {gather*} -\frac {e^{\left (-1\right )} \log \left ({\left | c x^{4} e^{4} + 4 \, c d x^{3} e^{3} + 6 \, c d^{2} x^{2} e^{2} + 4 \, c d^{3} x e + c d^{4} + b x^{2} e^{2} + 2 \, b d x e + b d^{2} + a \right |}\right )}{4 \, a f} + \frac {e^{\left (-1\right )} \log \left ({\left | x e + d \right |}\right )}{a f} - \frac {{\left (\frac {a b c f e^{3} \log \left ({\left | b x^{2} e^{2} + 2 \, b d x e + \sqrt {b^{2} - 4 \, a c} x^{2} e^{2} + 2 \, \sqrt {b^{2} - 4 \, a c} d x e + b d^{2} + \sqrt {b^{2} - 4 \, a c} d^{2} + 2 \, a \right |}\right )}{\sqrt {b^{2} - 4 \, a c}} - \frac {a b c f e^{3} \log \left ({\left | -b x^{2} e^{2} - 2 \, b d x e + \sqrt {b^{2} - 4 \, a c} x^{2} e^{2} + 2 \, \sqrt {b^{2} - 4 \, a c} d x e - b d^{2} + \sqrt {b^{2} - 4 \, a c} d^{2} - 2 \, a \right |}\right )}{\sqrt {b^{2} - 4 \, a c}}\right )} e^{\left (-4\right )}}{4 \, a^{2} c f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.46, size = 2520, normalized size = 24.47 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________